{% extends 'base.html' %}

{% block styles %}
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/DataTables/datatables.css">
{% endblock %}

{% block app_content %}
    <div class="row">
        <img src="{{ url_for('static',filename='home/images/manage_ico3.GIF') }}"
             width="12" height="12">&nbsp;
        <a href="{{ url_for('home.upload_file', hardware=hardware)}}">[上传日志]</a>

        <table id="example" class="display" cellspacing="0" width="100%">
            <thead>
            <tr>
{#                <th>taskid</th>#}
                <th>job</th>
                <th>上传时间</th>
                <th>删除</th>
            </tr>
            </thead>
            <tbody>
            </tbody>
        </table>
    </div>
{% endblock %}

{% block scripts %}
    <script src="/static/jquery.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="/static/DataTables/datatables.js"></script>
    <script>
        $(document).ready(function () {
            $('#example').DataTable({
                "ajax": "/hardware/job_list/{{hardware}}",
                "columns": [
                    {#{"data": "taskid"},#}
                    {"data": "job"},
                    {"data": "createtime"},
                    {"data": "del"},
                ]
            });
        })
        ;

    </script>
{% endblock %}